home *** CD-ROM | disk | FTP | other *** search
- /*
- * DO NOT EDIT. THIS FILE IS GENERATED FROM nsIPluginStreamInfo.idl
- */
-
- #ifndef __gen_nsIPluginStreamInfo_h__
- #define __gen_nsIPluginStreamInfo_h__
-
-
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
-
- #ifndef __gen_nspluginroot_h__
- #include "nspluginroot.h"
- #endif
-
- /* For IDL files that don't want to include root IDL files. */
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- #include "nsplugindefs.h"
-
- /* starting interface: nsIPluginStreamInfo */
- #define NS_IPLUGINSTREAMINFO_IID_STR "ed7d4ca0-b005-11d2-adaa-00805f6dec49"
-
- #define NS_IPLUGINSTREAMINFO_IID \
- {0xed7d4ca0, 0xb005, 0x11d2, \
- { 0xad, 0xaa, 0x00, 0x80, 0x5f, 0x6d, 0xec, 0x49 }}
-
- class NS_NO_VTABLE nsIPluginStreamInfo : public nsISupports {
- public:
-
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGINSTREAMINFO_IID)
-
- /* readonly attribute nsMIMEType contentType; */
- NS_IMETHOD GetContentType(nsMIMEType *aContentType) = 0;
-
- /* void isSeekable (out boolean aSeekable); */
- NS_IMETHOD IsSeekable(PRBool *aSeekable) = 0;
-
- /* readonly attribute unsigned long length; */
- NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
-
- /* readonly attribute unsigned long lastModified; */
- NS_IMETHOD GetLastModified(PRUint32 *aLastModified) = 0;
-
- /* void getURL (out constCharPtr aURL); */
- NS_IMETHOD GetURL(const char * *aURL) = 0;
-
- /* void requestRead (in nsByteRangePtr aRangeList); */
- NS_IMETHOD RequestRead(nsByteRange * aRangeList) = 0;
-
- /* attribute long streamOffset; */
- NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) = 0;
- NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) = 0;
-
- };
-
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSIPLUGINSTREAMINFO \
- NS_IMETHOD GetContentType(nsMIMEType *aContentType); \
- NS_IMETHOD IsSeekable(PRBool *aSeekable); \
- NS_IMETHOD GetLength(PRUint32 *aLength); \
- NS_IMETHOD GetLastModified(PRUint32 *aLastModified); \
- NS_IMETHOD GetURL(const char * *aURL); \
- NS_IMETHOD RequestRead(nsByteRange * aRangeList); \
- NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset); \
- NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset);
-
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSIPLUGINSTREAMINFO(_to) \
- NS_IMETHOD GetContentType(nsMIMEType *aContentType) { return _to GetContentType(aContentType); } \
- NS_IMETHOD IsSeekable(PRBool *aSeekable) { return _to IsSeekable(aSeekable); } \
- NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
- NS_IMETHOD GetLastModified(PRUint32 *aLastModified) { return _to GetLastModified(aLastModified); } \
- NS_IMETHOD GetURL(const char * *aURL) { return _to GetURL(aURL); } \
- NS_IMETHOD RequestRead(nsByteRange * aRangeList) { return _to RequestRead(aRangeList); } \
- NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) { return _to GetStreamOffset(aStreamOffset); } \
- NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) { return _to SetStreamOffset(aStreamOffset); }
-
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSIPLUGINSTREAMINFO(_to) \
- NS_IMETHOD GetContentType(nsMIMEType *aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
- NS_IMETHOD IsSeekable(PRBool *aSeekable) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSeekable(aSeekable); } \
- NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
- NS_IMETHOD GetLastModified(PRUint32 *aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
- NS_IMETHOD GetURL(const char * *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
- NS_IMETHOD RequestRead(nsByteRange * aRangeList) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestRead(aRangeList); } \
- NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStreamOffset(aStreamOffset); } \
- NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStreamOffset(aStreamOffset); }
-
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
-
- /* Header file */
- class nsPluginStreamInfo : public nsIPluginStreamInfo
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSIPLUGINSTREAMINFO
-
- nsPluginStreamInfo();
-
- private:
- ~nsPluginStreamInfo();
-
- protected:
- /* additional members */
- };
-
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsPluginStreamInfo, nsIPluginStreamInfo)
-
- nsPluginStreamInfo::nsPluginStreamInfo()
- {
- /* member initializers and constructor code */
- }
-
- nsPluginStreamInfo::~nsPluginStreamInfo()
- {
- /* destructor code */
- }
-
- /* readonly attribute nsMIMEType contentType; */
- NS_IMETHODIMP nsPluginStreamInfo::GetContentType(nsMIMEType *aContentType)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* void isSeekable (out boolean aSeekable); */
- NS_IMETHODIMP nsPluginStreamInfo::IsSeekable(PRBool *aSeekable)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* readonly attribute unsigned long length; */
- NS_IMETHODIMP nsPluginStreamInfo::GetLength(PRUint32 *aLength)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* readonly attribute unsigned long lastModified; */
- NS_IMETHODIMP nsPluginStreamInfo::GetLastModified(PRUint32 *aLastModified)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* void getURL (out constCharPtr aURL); */
- NS_IMETHODIMP nsPluginStreamInfo::GetURL(const char * *aURL)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* void requestRead (in nsByteRangePtr aRangeList); */
- NS_IMETHODIMP nsPluginStreamInfo::RequestRead(nsByteRange * aRangeList)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* attribute long streamOffset; */
- NS_IMETHODIMP nsPluginStreamInfo::GetStreamOffset(PRInt32 *aStreamOffset)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsPluginStreamInfo::SetStreamOffset(PRInt32 aStreamOffset)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
-
- /* End of implementation class template. */
- #endif
-
-
- #endif /* __gen_nsIPluginStreamInfo_h__ */
-